package org.shreker.shan.core.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.shreker.shan.core.domain.Login;

public interface LoginMapper {

	int deleteByPrimaryKey(Long id);
    int insert(Login record);
    Login selectByPrimaryKey(Long id);
    List<Login> selectAll();
    int updateByPrimaryKey(Login record);
	Login selectUserByUsername(String username);
	Login selectLogin(@Param("username")String username, @Param("password")String password, @Param("identity")Integer identity);
	Long selectCountByIdentity(Integer identity);

}